package com.threeti.jiayusms.domain.service.communicationmessage;

import com.threeti.jiayusms.domain.model.CommunicationMessage;
import com.threeti.jiayusms.framework.util.DynaSearchCriteria;
import com.threeti.jiayusms.framework.util.PagedListHandler;

public interface CommunicationMessageQueryService {

	public CommunicationMessage findCommunicationMessageBy(Long messageId);

	/** 根据短信模板编号取得特定的短信模板 */
	CommunicationMessage findCommunicationMessageBy(String messageId);

	/** 分页取得所有短信模板(无条件查询) */
  PagedListHandler<CommunicationMessage> findAllMsgTemplatesByPage(int currentPageIndex, int startingIndex);

	/** 根据条件(模糊)查询取得短信模板 */
  PagedListHandler<CommunicationMessage> findMsgTemplatesByPage(DynaSearchCriteria dynaSearchCriteria, int currentPageIndex, int startingIndex);
}
